import Skeleton from './Skeleton'
import Slider from './Slider'
import More from './More'
import Bread from './Bread/index.vue'
import BreadItem from './Bread/item.vue'
import City from './City'
import Sku from './Sku'
import Button from './Button'
import Numbox from './Numbox'
import Checkbox from './CheckBox'
const cps = [Skeleton, Slider, More, BreadItem, Bread, City, Sku, Numbox, Button, Checkbox]
// 使用vue插件注册全局组件
export default {
  // vue2和vue3注册组件的方法上变了参数  vue2是vue构造函数  vue3是app实例
  install(app) {
    // 批量注册
    cps.forEach(cp => {
      app.component(cp.name, cp)
    })
  }
}